var a,b;a=this,b=function(){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,e){for(var o=0;ot.length)&&(e=t.length);for(var o=0,n=new Array(e);o\n \n \n \n \n \n \n \n \n \n ',black:'\n \n \n \n \n \n \n \n \n '},p=".prokerala-location-wdgt-theme-light{--background-color:#fff;--hover-background-color:#2196F3;--hover-text-color:#fff;--text-color:#000;--muted-text-color:#757575;--muted-text-color-hover:#fff}.prokerala-location-wdgt-theme-dark{--background-color:#9E9E9E;--hover-background-color:#b9b9b9;--hover-text-color:#fff;--text-color:#fff;--muted-text-color:#fff;--muted-text-color-hover:#fff}.prokerala-location-wdgt-suggestions{border:1px solid #e4e4e4;box-shadow:rgba(0,0,0,.2) 0 0 .5rem;margin:0;position:absolute;z-index:1;background:var(--background-color,#fff);color:var(--text-color,#000);width:100%}.prokerala-location-wdgt-suggestions ul{list-style:none;padding:0;margin-bottom:25px;margin-top:0;margin-left:0;max-height:400px;overflow:hidden;overflow-y:scroll}.prokerala-location-wdgt-suggestions li{cursor:pointer;padding:.75rem;font-family:Arial,Helvetica,sans-serif;font-size:16px;margin: 0;}.prokerala-location-wdgt-suggestions li.active{background-color:var(--hover-background-color,#2196f3);color:var(--hover-text-color,#fff)}.prokerala-location-wdgt-suggestions li:last-child{border-bottom:none}.prokerala-location-wdgt-suggestions li.active>.prokerala-location-wdgt-muted{color:var(--muted-text-color-hover,#fff)}.prokerala-location-wdgt-muted{font-size:14px;color:var(--muted-text-color,#757575)}.prokerala-location-wdgt-suggestions ul::-webkit-scrollbar{width:2px}.prokerala-location-wdgt-suggestions ul::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.prokerala-location-wdgt-suggestions ul::-webkit-scrollbar-thumb{background-color:#ccc;outline:1px solid #ccc}";function h(t){try{var e=localStorage.getItem(l),o=(o=(o=e).split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),o=decodeURIComponent(atob(o).split("").map(function(t){return"%".concat("00".concat(t.charCodeAt(0).toString(16)).slice(-2))}).join("")),JSON.parse(o));if((new Date).getTime()>o.exp&&o.aud===window.location.origin&&o.sub===t)return e}catch(t){}var o;return null}function f(t){var e=new XMLHttpRequest;return e.onreadystatechange=function(){4===e.readyState&&200===e.status&&t(JSON.parse(e.responseText))},e}return function(){function i(t,e){var o=2 ').concat(t[3],""),i.appendChild(e)}),o.appendChild(i)):((c=document.createElement("p")).innerHTML='No results found..',o.appendChild(c)),o.appendChild(this.getPoweredBy()),n=t.getBoundingClientRect(),r=(e=t).getBoundingClientRect(),c=window.pageXOffset||document.documentElement.scrollLeft,e=window.pageYOffset||document.documentElement.scrollTop,c={top:r.top+e,left:r.left+c},o.style.top="".concat(c.top+n.height,"px"),o.style.width="".concat(n.width,"px"),o.style.left="".concat(c.left,"px"),document.body.appendChild(o),this.bindSuggestionElementEvents(t,o))}},{key:"getPoweredBy",value:function(){var t=document.createElement("p"),e="theme-dark"===this.options.theme?"white":"black",o='Powered By "),t.innerHTML=o;return t.setAttribute("style","display: inline-block !important;padding: 0px !important;margin: 0px !important;right: 0 !important;bottom: 0 !important;position: absolute !important;font-size: 10px !important;opacity: 1!important;"),t}},{key:"bindSuggestionElementEvents",value:function(o,n){var i=this;Array.prototype.forEach.call(n.querySelectorAll("li"),function(t,e){t.addEventListener("mouseover",function(){var t=n.querySelector(".active");t&&t.classList.remove("active"),this.classList.add("active"),i.activeSuggestion=e}),t.addEventListener("click",function(){return i.onSelect(o,t)})})}},{key:"clearAutocompleteList",value:function(){var t=document.querySelector(".prokerala-location-wdgt-suggestions");t&&t.remove(),this.activeSuggestion=-1}}])&&n(t.prototype,e),o&&n(t,o),i}()},"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):(a="undefined"!=typeof globalThis?globalThis:a||self).LocationSearch=b() ;